<?php
namespace Home\Controller;
use Think\Controller;
use Think\Log;

class TestController extends Controller{
    public function index(){
        echo 'Test index';
    }

    public function edit(){
        $this->display();
    }
    public function editData(){
//        $data = I('post.str','','htmlspecialchars');
        $data = $_POST['str'];
        Log::record('-------------------');
        Log::record(print_r($data,true));
    }

}